package com.example.graduationdesignbackend.exception;

import com.example.graduationdesignbackend.constants.ResponseCode;
import lombok.Data;

@Data
public class ParkException extends RuntimeException {
  ResponseCode resultCode;
  
  public ParkException(ResponseCode resultCode) {
    super(resultCode.getName());
    this.resultCode = resultCode;
  }
  
  public ParkException(ResponseCode resultCode, String msg) {
    super(msg);
    resultCode.setName(msg);
    this.resultCode = resultCode;
    
  }
}
